<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>配送员登录界面</title>
	<link rel="stylesheet" type="text/css" href="css/NewLogin.css">
	<link rel="stylesheet" type="text/css" href="css/top.css">
	<link rel="stylesheet" type="text/css" href="css/iconfont.css">
	<script type="text/javascript" >
		function check(){
			var clerkid=document.getElementById('clerkid').value;
			var password=document.getElementById('password').value;
			if(clerkid==""||clerkid==null){
				window.alert("账号不能为空！");
				document.login.clerkid.focus();
				return false;
			}
			if(password==""||password==null){
				window.alert("密码不能为空！");
				document.login.password.focus();
				return false;
			}
			return true;
		}
	</script>

  </head>
  
  <body>
	<%
		String msg = (String) session.getAttribute("msg");
		session.setAttribute("msg","");
	%>
    <form id="bigBox" method="POST" action="/express/servlet/ClerkLogin?role=clerk&modth=login" name="login" onsubmit="return check()">
        <h1>配送员登录</h1>
        <font color="red">
            <span id="message">
                <%if(msg==null){msg="";} %>
                <%=msg %>
            </span>
       </font>
        <!-- 登录界面容器 -->
        <div class="inputBox" >
            <!-- 配送员电话 -->
            <div class="inputText">
                <span>
                    <i class="iconfont icon-phone"></i>
                    账号:
                </span>
                <input type="text"  id="clerkid" name="clerkid" placeholder="Clerkphone">
            </div>
            <!-- 密码 -->
            <div class="inputText">
                <span>
                    <i class="iconfont icon-password"></i>
                    	密码:
                </span>
                <input type="password" id="password" name="password" placeholder="Password">
            </div>
            <!-- 登录按钮 -->
            <input type="submit" class="inputButton" value="登录">

           <!-- 返回按钮 -->
            <a href="index.jsp">
                <input type="button" class="inputButton" value="返回">
            </a>
        </div>
    </form>
  </body>
</html>
